package com.cmc.cloud.cmclink.doc.vo.blnoblprintlogvo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.Date;

import static com.cmes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 草稿确认请求VO
 *
 * @author llp
 */
@Schema(description = "草稿确认请求VO")
@Data
@EqualsAndHashCode()
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
public class DraftConfirmReqDto {

    @Schema(description = "提单ID", example = "")
    @NotNull(message = "{DraftConfirmReqDto.blId.NotNull}")
    private Long blId;

    @Schema(description = "确认人", example = "")
    private String confirmer;

    @Schema(description = "确认时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime confirmDate;
}
